<?php

class FurryUserTable extends Doctrine_Table
{
    public function login ($login, $password)
    {
         $password = md5($password);
         $query = Doctrine_Query::create()->from('FurryUser')->addWhere('login = ?', $login)->andWhere('password = ?', $password);
         return $query->fetchOne();
   }
}
